package com.usian.security.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.usian.security.entity.Menu;

import java.util.List;

/**
 * ClassName: MenuMapper
 * Author:   WGG
 * Date:    2022-12-2022/12/21-10:05
 * Version: 1.0
 * Description:
 */
public interface MenuMapper extends BaseMapper<Menu> {

    /**
     * 根据用户的id查询对应的权限
     * @param userId
     * @return
     */
    List<Menu> getPermissionsByUserId(Long userId);
}
